package com.marianmedla.jane16.lib;

public class Phrase { 
	
	public String  text;
	public Word[] words;
	public int position; 
	
	public Phrase(Word ... words){
	
		if(words==null){
			return;
		}
		
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < words.length; i++) {
			sb.append(words[i].text).append(' ');
		}
		this.text = sb.toString().trim();
		
		this.words = words;
		
	}
}
